package com.ddone.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ddone
 * @date 2024/3/21-19:28
 */
@Controller
@Slf4j
public class IndexController {

    // 用    <mvc:view-controller path="/" view-name="index"/> 代替
    //     <mvc:view-controller path="/index.html" view-name="index"/>
    // @RequestMapping({"/","/index.html"})
    // public String index(){
    //     log.warn("欢迎进入IndexController~~~~~~");
    //     return "index";
    // }

    // @RequestMapping("/hello")
    // public String hello(){
    //     log.warn("欢迎进入Hello~~~");
    //     return "hello";
    // }



}
